import request from "@/utils/request";

// 产品映射列表查询
export function getProductMappingList(query) {
  return request({
    url: "/mes/md/productMapping/list",
    method: "get",
    params: query,
  });
}

// 产品映射新增
export function addProductMapping(data) {
  return request({
    url: "/mes/md/productMapping",
    method: "post",
    data,
  });
}

// 产品映射修改
export function updateProductMapping(data) {
  return request({
    url: "/mes/md/productMapping",
    method: "put",
    data,
  });
}

// 产品映射删除
export function deleteProductMapping(id) {
  return request({
    url: "/mes/md/productMapping/" + id,
    method: "delete",
  });
}

// 产品映射查询详情
export function getProductMappingDetail(id) {
  return request({
    url: "/mes/md/productMapping/" + id,
    method: "get",
  });
}
